import java.util.Scanner;
 class Main {
    public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
    Student s1 = new Student();
        s1.setName(sc.next());
    s1.setAge(sc.nextInt());

  s1.getAge();
  s1.getName();
s1.display();
sc.close();

    }
}



 class Student {
    private  String name;
    private  int age;

    public Student() {
        this.age =7;
        this.name="无名";
        System.out.println("无参构造方法");
        System.out.println("name:"+name+",age:"+age);
    }

    public Student( String name, int age) {}
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        if (age <= 6) {

            this.age = 7;
        }
else {this.age = age;}
    }
    public void display(){
                System.out.println("name:"+name+","+"age:"+age);


    }
}
